<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>后台管理 - <?php echo $__env->yieldContent('title'); ?></title>
    <link rel="stylesheet" href="<?php echo e(asset('css/bootstrap.min.css')); ?>">
    <script src="<?php echo e(asset('js/jquery-3.5.1.min.js')); ?>"></script>
    <script src="<?php echo e(asset('js/popper.min.js')); ?>"></script>
    <script src="<?php echo e(asset('js/bootstrap.min.js')); ?>"></script>
    <script src="<?php echo e(asset('js/layer/layer.js')); ?>"></script>
    <style>
        html,body{
            height: 100%;
        }
        .main-wrapper{
            display:flex;
            overflow: hidden;
        }
        .sidebar{
            width: 240px;
            height: 100%;
            position: fixed;
            left: 0;
            top: 0;
        }

        .main-wrapper .page-wrapper{
            min-height: 100vh;
            background-color: #f9fafb;
            width: calc(100% - 240px);
            margin-left: 240px;
            display: -webkit-flex;
            display: flex;
            -webkit-flex-direction: column;
            flex-direction: column;
        }
        .navbar{
            width: calc(100% - 240px);
            height: 60px;
            background-color: #ffffff;
            border-bottom:1px solid #f2f4f9;
            display: -webkit-flex;
            display: flex;
            -webkit-align-items: center;
            align-items: center;
            padding: 0;
            position: fixed;
            right: 0;
            left: 240px;
            box-shadow: 3px 0 10px 0 rgba(183, 192, 206, 0.2);
            z-index: 99999;
        }
        .navbar .navbar-content{
            display: -webkit-flex;
            display: flex;
            width: 100%;
            height: 100%;
            padding-left: 25px;
            padding-right: 25px;
        }
        .navbar .navbar-content .navbar-nav{
            display: -webkit-flex;
            display: flex;
            -webkit-flex-direction: row;
            flex-direction: row;
            margin-left: auto;
        }
        .navbar .navbar-content .navbar-nav .nav-item{
            position: relative;
            margin-left: 5px;
            margin-right: 5px;
            min-width: 30px;
            display: -webkit-flex;
            display: flex;
            -webkit-align-items: center;
            align-items: center;
        }
        .navbar .navbar-content .navbar-nav .nav-item .nav-link{
            color: #535353;
            padding: 0;
            position: relative;
            margin-left: auto;
            margin-right: auto;
        }
        .navbar .navbar-content .navbar-nav .nav-item.nav-profile .dropdown-menu{
            padding: 20px;
            min-width: 230px;
            position: absolute;
            right: -20px;
            left: auto;
            border-radius: 0;
            margin-top: 0;
            border: 1px solid #f2f4f9;
            box-shadow:0 5px 10px 0 rgba(183, 192, 206, 0.2);
            font-size: 14px;
        }
        .navbar .navbar-content .navbar-nav .nav-item.nav-profile .dropdown-header{
            border-bottom: 1px solid #f2f4f9;
        }
        .navbar .navbar-content .navbar-nav .nav-item.nav-profile .dropdown-header .figure{
            position: relative;
        }
        .navbar .navbar-content .navbar-nav .nav-item.nav-profile .dropdown-header .info .name{
            font-size: 16px;
        }
        .navbar .navbar-content .navbar-nav .nav-item.nav-profile .dropdown-header .info .administrator{
            font-size: 12px;
        }
        .navbar .navbar-content .navbar-nav .nav-item.nav-profile .dropdown-toggle::after{
            display: none;
        }
        .navbar .navbar-content .navbar-nav .nav-item.nav-profile .dropdown-menu .dropdown-body {
            text-align: left;
            z-index: 999999;
        }
        .navbar .navbar-content .navbar-nav .nav-item.nav-profile .dropdown-menu .dropdown-body .profile-nav .nav-item{
            width: auto;
            margin: 0 0 5px 0;
        }
        .navbar .navbar-content .navbar-nav .nav-item.nav-profile .dropdown-menu .dropdown-body .profile-nav .nav-item .nav-link{
            display: -webkit-flex;
            display: flex;
            -webkit-align-items: center;
            align-items: center;
            margin-left: 0;
            margin-right: 0;
            color: #383838;

        }
        .navbar .navbar-content .navbar-nav .nav-item.nav-profile .dropdown-menu .dropdown-body .profile-nav .nav-item .nav-link svg{
            width: 16px;
            height: 16px;
            margin-right: 20px;
        }
        .navbar .navbar-content .navbar-nav .nav-item.nav-profile .dropdown-menu .dropdown-body .profile-nav .nav-item .nav-link span{
            font-size: 14px;
            margin-top: 2px;
        }

        .main-wrapper .page-wrapper .page-content{
            flex-grow: 1;
            padding: 25px;
            margin-top: 60px;
        }

        .mb-0{
            margin-bottom: 0 !important;
        }
        .mb-3{
            margin-bottom: 10px !important;
        }

        .p-0{
            padding: 0 !important;
        }
        .pt-3{
            padding-top: 10px !important;
        }

        .ps{
            overflow: hidden !important;
            overflow-anchor:none;
            -ms-overflow-style: none;
            touch-action: auto;
            -ms-touch-action: auto;

        }

        .font-weight-bold{
            font-weight: 700 !important;
        }

        .text-center{
            text-align: center !important;
        }

        .text-muted{
            color: #686868 !important;
        }

        a,a:link,a:visited,a:hover,a:active{
            text-decoration: none;
        }

        .collapse:not(.show){
            display: none;
        }

        .sidebar .sidebar-header{
            background-color: #ffffff;
            height: 60px;
            border-bottom: 1px solid #f2f4f9;
            display: -webkit-flex;
            display: flex;
            -webkit-justify-content: space-between;
            justify-content: space-between;
            -webkit-align-items: center;
            align-items: center;
            padding: 0 25px;
            border-right: 1px solid #f2f4f9;
            width: 240px;
        }
        .sidebar .sidebar-header .sidebar-brand{
            opacity: 1;
            visibility: visible;
            font-weight: 900;
            font-size: 25px;
            letter-spacing: -1px;
            color: #031a61;
        }
        .sidebar .sidebar-header .sidebar-brand span{
            color: #727cf5;
            font-weight: 300;
        }
        .sidebar .sidebar-body{
           max-height: calc(100% - 60px);
            position: relative;
            border-right: 1px solid #f2f4f9;
            height: 100%;
            -webkit-box-shadow: 0 8px 10px 0 rgba(183, 192, 206, 0.2);
            box-shadow: 0 8px 10px 0 rgba(183, 192, 206, 0.2);
            background: #ffffff;
        }
        .sidebar .sidebar-body .nav{
            display: -webkit-flex;
            display: flex;
            -webkit-flex-direction: column;
            flex-direction: column;
            padding: 25px 25px 50px 25px;
        }
        .sidebar .sidebar-body .nav .nav-item.nav-category{
            color: #686868;
            font-size: 11px;
            text-transform: uppercase;
            font-weight: 700;
            letter-spacing: .5px;
            margin-bottom: 5px;
            height: 15px;
        }
        .sidebar .sidebar-body .nav .nav-item.nav-category:not(:first-child){
            margin-top: 20px;
        }
        .sidebar .sidebar-body .nav .nav-item .nav-link{
            display: -webkit-flex;
            display: flex;
            -webkit-align-items: center;
            align-items: center;
            padding: 0;
            height: 32px;
            white-space: nowrap;
            color: #000;
        }
        .sidebar .sidebar-body .nav .nav-item.active .nav-link::before{
            content: '';
            width: 30px;
            height: 26px;
            background-color: #727cf5;
            position: absolute;
            left: -25px;
        }
        .sidebar .sidebar-body .nav .nav-item .nav-link[aria-expanded="true"]{
            color: #727cf5;
        }
        .sidebar .sidebar-body .nav .nav-item .nav-link .link-icon{
            width: 16px;
            height: 16px;
            fill: rgba(233, 236, 239, 0.21);
            position: absolute;
            color: inherit;
        }
        .sidebar .sidebar-body .nav .nav-item .nav-link .link-title{
            margin-left: 30px;
            font-size: 14px;
        }
        .sidebar .sidebar-body .nav .nav-item .nav-link .link-arrow{
            width: 14px;
            height: 14px;
            margin-left: auto;
            color: inherit;
        }
        .sidebar .sidebar-body .nav .nav-item .nav-link[aria-expanded="true"] .link-arrow{
           -webkit-transform: rotate(90deg);
            transform: rotate(180deg);
        }
        .sidebar .sidebar-body .nav .nav-item .nav-link .link-icon,
        .sidebar .sidebar-body .nav .nav-item .nav-link .link-title,
        .sidebar .sidebar-body .nav .nav-item .nav-link .link-arrow{
            -webkit-transition: all .3s ease;
            transition: all .3s ease;
        }
        .sidebar .sidebar-body .nav .nav-item:hover .nav-link .link-title{
            margin-left: 31px;
        }
        .sidebar .sidebar-body .nav .nav-item.active .nav-link .link-icon{
            fill: rgba(239, 243, 255, 0.5);
            color: #727cf5;
        }
        .sidebar .sidebar-body .nav.sub-menu{
            padding: 0 0 15px 33px;
        }
        .sidebar .sidebar-body .nav.sub-menu .nav-item{
            position: relative;
        }
        .sidebar .sidebar-body .nav.sub-menu .nav-item .nav-link{
            height: 25px;
            color: #000;
            font-size: 13px;
            -webkit-transition: all .3s ease-in-out;
            transition: all .3s ease-in-out;
        }
        .sidebar .sidebar-body .nav.sub-menu .nav-item .nav-link::before{
            content: '';
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: transparent;
            border:1px solid #a9b4ca;
            position: absolute;
            left: -29px;
            top: 10px;
            -webkit-transition: all .4s ease-in-out;
            transition: all .4s ease-in-out;
        }
        .sidebar .sidebar-body .nav-child-category.active,
        .sidebar .sidebar-body .nav .nav-item.active .nav-link,
        .sidebar .sidebar-body .nav .nav-item:hover .nav-link.nav-child-category,
        .sidebar .sidebar-body .nav.sub-menu .nav-item:hover .nav-link,
        .sidebar .sidebar-body .nav.sub-menu .nav-item .nav-link.active{
            color: #727cf5 !important;
        }
        .sidebar .sidebar-body .nav.sub-menu .nav-item:hover .nav-link::before,
        .sidebar .sidebar-body .nav.sub-menu .nav-item .nav-link.active::before{
            border: 1px solid #727cf5;
            background: #727cf5;
        }
        .sidebar .sidebar-body .nav.sub-menu .nav-item:hover .nav-link{
            margin-left: 3px;
        }


    </style>
</head>
<body>
<div class="main-wrapper">
    <nav class="sidebar">
        <div class="sidebar-header">
            <a href="#" class="sidebar-brand">
                后台管理
                <span>UI</span>
            </a>
        </div>
        <div class="sidebar-body ps">
            <?php if(empty(session()->get('menuTree'))): ?>
            <div class="text-secondary" style="text-align: center;padding: 20px;">暂无菜单数据</div>
            <?php else: ?>
            <ul class="nav">
                <?php $__currentLoopData = session()->get('menuTree'); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $firstKey=>$firstVal): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <?php if(1 == session()->get('admin_user')['is_administrator']['value']
                    || !empty(session()->get('adminUserRule')[$firstKey])): ?>
                        <li class="nav-item nav-category"><?php echo e($firstVal['name']); ?></li>
                        <?php if(!empty($firstVal['children'])): ?>
                            <?php $__currentLoopData = $firstVal['children']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $secondKey=>$secondVal): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <?php if(1 == session()->get('admin_user')['is_administrator']['value']
                            || !empty(session()->get('adminUserRule')[$secondKey])): ?>
                                <?php if(!empty($secondVal['children'])): ?>
                                    <li class="nav-item">
                                        <a data-toggle="collapse" href="#role_<?php echo e($secondKey); ?>" role="button"
                                           <?php if($secondKey == session()->get('currentMenuFatherId')): ?>
                                           aria-expanded="true"
                                           class="nav-link nav-child-category active"
                                           <?php else: ?>
                                           class="nav-link nav-child-category"
                                           aria-expanded="false"
                                           <?php endif; ?>
                                           aria-controls="emails">
                                            <?php if($secondVal['icon']): ?>
                                            <svg style="" width="24" height="24" class="feather feather-box link-icon">
                                                <use xlink:href="<?php echo e(com_bootstrap_icon_path()); ?>/bootstrap-icons.svg#person-check" />
                                            </svg>
                                            <?php endif; ?>
                                            <span class="link-title"><?php echo e($secondVal['name']); ?></span>
                                            <svg style="" width="24" height="24" class="feather feather-box chevron-down link-arrow">
                                                <use xlink:href="<?php echo e(com_bootstrap_icon_path()); ?>/bootstrap-icons.svg#chevron-down" />
                                            </svg>
                                        </a>
                                        <div
                                                <?php if($secondKey == session()->get('currentMenuFatherId')): ?>
                                                class="collapse show"
                                                <?php else: ?>
                                                class="collapse"
                                                <?php endif; ?>
                                                id="role_<?php echo e($secondKey); ?>" style>
                                            <ul class="nav sub-menu">
                                                <?php $__currentLoopData = $secondVal['children']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $thirdKey=>$thirdVal): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                <?php if(1 == session()->get('admin_user')['is_administrator']['value']
                                                    || !empty(session()->get('adminUserRule')[$thirdKey])): ?>
                                                <li class="nav-item">
                                                    <a href="<?php echo e(url($thirdVal['url']['value'])); ?>"
                                                       <?php if($thirdKey == session()->get('currentMenuId')): ?>
                                                       class="nav-link active"
                                                       <?php else: ?>
                                                       class="nav-link"
                                                       <?php endif; ?>
                                                    >
                                                        <?php echo e($thirdVal['name']); ?>

                                                    </a>
                                                </li>
                                                <?php endif; ?>
                                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                            </ul>
                                        </div>
                                    </li>
                                <?php else: ?>
                                    <li class="nav-item">
                                        <a <?php if(isset($secondVal['url']['value'])): ?>
                                           href="<?php echo e(url($secondVal['url']['value'])); ?>"
                                           <?php else: ?>
                                           href="#"
                                           <?php endif; ?>
                                           <?php if($secondKey == session()->get('currentMenuId')): ?>
                                           class="nav-link nav-child-category active"
                                           <?php else: ?>
                                           class="nav-link nav-child-category"
                                           <?php endif; ?>
                                        >
                                            <?php if(!empty($secondVal['icon'])): ?>
                                            <svg style="" width="24" height="24" class="feather feather-box link-icon">
                                                <use xlink:href="<?php echo e(com_bootstrap_icon_path()); ?>/bootstrap-icons.svg#<?php echo e($secondVal['icon']); ?>" />
                                            </svg>
                                            <?php endif; ?>
                                            <span class="link-title"><?php echo e($secondVal['name']); ?></span>
                                        </a>
                                    </li>
                                <?php endif; ?>
                            <?php endif; ?>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        <?php endif; ?>
                    <?php endif; ?>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </ul>
            <?php endif; ?>

        </div>













































    </nav>
    <div class="page-wrapper">
        <nav class="navbar">
            <div class="navbar-content">
                <ul class="navbar-nav">
                    <li class="nav-item dropdown nav-profile">
                        <a class="nav-link dropdown-toggle" href="#"
                           id="profileDropdown" role="button" data-toggle="dropdown"
                           aria-haspopup="true" aria-expanded="false">
                            <svg style="" width="30" height="30">
                                <use xlink:href="<?php echo e(com_bootstrap_icon_path()); ?>/bootstrap-icons.svg#person-circle" />
                            </svg>
                        </a>
                        <div class="dropdown-menu" aria-labelledby="profileDropdown">
                            <div class="dropdown-header d-flex flex-column align-items-center">
                                <div class="figure mb-3">
                                    <svg style="" width="80" height="80">
                                        <use xlink:href="<?php echo e(com_bootstrap_icon_path()); ?>/bootstrap-icons.svg#person-circle" />
                                    </svg>
                                </div>
                                <div class="info text-center">
                                    <p class="name font-weight-bold mb-0">
                                        <?php echo e(Session::get('admin_user')['name']); ?>

                                    </p>
                                    <p class="mb-3 text-muted administrator">
                                        <?php if(1 == Session::get('admin_user')['is_administrator']['value']): ?>
                                            超级管理员
                                        <?php else: ?>
                                        管理员
                                        <?php endif; ?>
                                    </p>
                                </div>
                            </div>
                            <div class="dropdown-body">
                                <ul class="profile-nav p-0 pt-3">
                                    <li class="nav-item">
                                        <a href="<?php echo e(url('admin/user/profile')); ?>" class="nav-link">
                                            <svg style="" width="80" height="80">
                                                <use xlink:href="<?php echo e(com_bootstrap_icon_path()); ?>/bootstrap-icons.svg#person" />
                                            </svg>
                                            <span>基本信息</span>
                                        </a>
                                    </li>
                                    <li class="nav-item">
                                        <a href="<?php echo e(url('admin/user/editProfile')); ?>" class="nav-link">
                                            <svg style="" width="80" height="80">
                                                <use xlink:href="<?php echo e(com_bootstrap_icon_path()); ?>/bootstrap-icons.svg#pencil-square" />
                                            </svg>
                                            <span>修改信息</span>
                                        </a>
                                    </li>
                                    <li class="nav-item">
                                        <a href="<?php echo e(url('admin/loginOut')); ?>" class="nav-link">
                                            <svg style="" width="80" height="80">
                                                <use xlink:href="<?php echo e(com_bootstrap_icon_path()); ?>/bootstrap-icons.svg#arrow-bar-right" />
                                            </svg>
                                            <span>登出</span>
                                        </a>
                                    </li>
                                </ul>
                            </div>
                        </div>

                    </li>
                </ul>
            </div>
        </nav>
        <div class="page-content">
            <?php echo $__env->yieldContent('content'); ?>
        </div>
    </div>
</div>
</body>
</html><?php /**PATH F:\wamp64\www\laravel8\resources\views/layout/admin.blade.php ENDPATH**/ ?>